Skip to main content

How to run Ember as Windows Service

How to run Ember as a Windows service using WinSW

Resources

Requirements

  • JDK 8+ – required by Ember
  • .NET Framework 4.6.1 or higher – required by WinSW

Steps

  1. Download Ember distribution zip and place it under %EMBER_DIST%
  2. Create %EMBER_DIST%\service directory
  3. Download [WinSW](https://github.com/winsw/winsw/releases/download/v3.0.0-alpha.4/WinSW.NET461.exe should match with your platform and .NET Framework), place it %EMBER_DIST%\service and rename to winsw.exe
  4. Create %EMBER_DIST%\service\ember-service.xml (see below for reference)
  5. Run winsw.exe install ember-service.xml
  6. Repeat 4-5 steps for ember-monitor, ember-warehouse, and ember-compaction processes

Config

<service>
<env name="EMBER_HOME" value="c:\temp\Ember\win-srv\home\"/>
<env name="EMBER_WORK" value="c:\temp\Ember\win-srv\work\"/>
<env name="EMBER_DIST" value="c:\temp\Ember\win-srv\"/>

<id>ember-service</id>
<name>Ember Service</name>
<description>Ember Service</description>

<logmode>rotate</logmode>
<logpath>logs\ember-service</logpath>

<executable>java</executable>
<arguments>
-cp %EMBER_DIST%\lib\*;%EMBER_DIST%\lib\custom\*
deltix.ember.app.EmberApp
</arguments>
</service>

Components

NameClassCommand Line
Emberdeltix.ember.app.EmberApp-
Ember Monitordeltix.ember.monitor.EmberMonitorApp-
Ember Warehousedeltix.ember.data.warehouse.EmberWarehouseApp${unit-name}
Ember Compactiondeltix.ember.journal.compaction.EmberCompactionApp-